#include "gamescene2.h"
#include "ui_gamescene2.h"

GameScene2::GameScene2(QWidget *parent) :
    GameScene(parent)

{

    brick_num=BRICK_NUMBER_2;

    int px=130;
    int py = 0;
    enemies[0]=new hardbrick(210,py);
    enemies[1]=new hardbrick(490,py);
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    enemies[2]=new hardbrick(150,py);
    enemies[3]=new hardbrick(260,py);
    enemies[4]=new hardbrick(440,py);
    enemies[5]=new hardbrick(550,py);
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    enemies[6] = new hardbrick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;
    enemies[7] = new brick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;
    enemies[8] = new hardbrick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;
    enemies[9] = new brick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;
    enemies[10] = new hardbrick(px,py);
    px = 80;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    enemies[11]=new hardbrick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;
    for(int i = 12;i<16;++i)
    {
        enemies[i]=new brick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
    }
    enemies[16]=new hardbrick(px,py);

    px = 80;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    enemies[17]=new hardbrick(px,py);
     px=px+BRICK_INTERVAL+BRICK_LENGTH;
    for(int i = 18;i<22;++i)
    {
        enemies[i]=new brick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
    }
    enemies[22]= new hardbrick(px,py);

    px = 130;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    enemies[23] = new hardbrick(px,py);
    px=px+BRICK_INTERVAL+BRICK_LENGTH;

    for(int i = 24;i<27;++i)
    {
        enemies[i]=new brick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
    }
    enemies[27] = new hardbrick(px,py);

     px = 180;
     py=py+BRICK_WIDTH+BRICK_INTERVAL;
     enemies[28] = new hardbrick(px,py);

     px=px+BRICK_INTERVAL+BRICK_LENGTH;
     for(int i = 29;i<31;++i)
     {
        enemies[i]=new brick(px,py);
        px=px+BRICK_INTERVAL+BRICK_LENGTH;
     }
     enemies[31] = new hardbrick(px,py);

     px=230;
     py=py+BRICK_WIDTH+BRICK_INTERVAL;
     enemies[32] = new hardbrick(px,py);
     px=px+BRICK_INTERVAL+BRICK_LENGTH;
     for(int i = 33;i<34;++i)
     {
         enemies[i]=new brick(px,py);
         px=px+BRICK_INTERVAL+BRICK_LENGTH;
     }
     enemies[34] = new hardbrick(px,py);

      px = 290;
      py=py+BRICK_WIDTH+BRICK_INTERVAL;
      enemies[35]=new hardbrick(px,py);
      enemies[36]=new hardbrick(400,py);
      enemies[37]=new hardbrick(340,360);

}

